<template>
	<activity-list :data="activityList" @handleClick="toArea"></activity-list>
</template>

<script>
	import {
		getActivityList
	} from "../../../api/supervise/index.js"
	export default {
		data() {
			return {
				activityList: []
			}
		},
		onLoad() {
			this.getActivityList();
		},
		methods: {
			getActivityList() {
				getActivityList().then(res => {
					if (res.status === 0) {
						this.activityList = res.activities;
					}
				})
			},
			toArea(item) {
				this.$tab.navigateTo("/pages/index/viewVideo/area?activityId=" + item.id);
			}
		}
	}
</script>

<style lang="scss" scoped>
</style>